xen/arm: make process_memory_node a device_tree_node_func
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 19 Aug 2019 17:43:32 +0000 (10:43 -0700)
committerJulien Grall <julien.grall@arm.com>
Tue, 20 Aug 2019 12:39:51 +0000 (13:39 +0100)
commitd9f451d451c9eb2d315ee21a5d839d993af3dd49
tree0902f039aa5a8f9eb19c6d473f7d4ef34a060e81
parent40f2ea3df2e2980750ffa99bed3d877993c47254
xen/arm: make process_memory_node a device_tree_node_func

Change the signature of process_memory_node to match
device_tree_node_func. Thanks to this change, the next patch will be
able to use device_tree_for_each_node to call process_memory_node on all
the children of a provided node.

Return error if there is no reg property or if nr_banks is reached. Let
the caller deal with the error.

Add a printk when device tree parsing fails.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/bootfdt.c